#ifndef QBCISHAPE_H
#define QBCISHAPE_H

#include <QImage>
#include <QPainter>

class QBciShape
{
public:
    QBciShape();

public:
    void setSetImage(const QString &mapPath);
    void setSetImage(const QImage &src);
    void setUnsetImage(const QString &mapPath);
    void setUnsetPixmap(const QImage &src);

    void getIcon(const QString &setPixmapPath, const QString &unsetPixmapPath);
    void getGeometry(const int &x, const int &y, const int &width, const int &height);
    void rotate(const qreal &degree);
    void stylePaint(QPainter *painter);
    void getStatus(const bool &status);

private:
    QImage SetImage;
    QImage UnsetImage;

private:
    // Target status
    bool Status = false;
    // 位置参数
    int X = 0;
    int Y = 0;
    // 长宽参数
    int Width = 0;
    int Height = 0;
};

#endif // QBCISHAPE_H
